/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ac.za.cput.xalisa.designpatterns.structural.proxy;

/**
 *
 * @author Enkosi
 */
class Account{
    private long accountNumber;
    private long balance;
    
    public long getAccountNumber() {
        return accountNumber;
    }

    public void setAccountNumber(long accountNumber) {
        this.accountNumber = accountNumber;
    }

    boolean checkBalance(long accountNumber, double amountNeeded) {
        if(balance < amountNeeded)
            return true;
        else 
            return false;        
    }
}
